//
//  VersionUtil.h
//  xychain_DM_iOS
//
//  Created by Jpwang on 2018/6/8.
//  Copyright © 2018年 Jpwang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface VersionUtil : NSObject

+ (VersionUtil *)shareInstance;

- (void)checkVersion:(NSString *)url block:(void (^)(NSString *onlineVersion, NSError *error))block;

- (void)isNeedUpdate:(NSString *)url block:(void (^)(BOOL isNeedUpdate, NSError *error))block;

- (BOOL)isNeedUpdate:(NSString *)onLineVersion;

@end
